import request from '@/utils/request';

// 查询分类品牌列表
export function listCategoryBrand(query) {
  return request({
    url: '/product/categoryBrand/list',
    method: 'get',
    params: query
  })
}

// 新增分类品牌
export function addCategoryBrand(data) {
  return request({
    url: '/product/categoryBrand',
    method: 'post',
    data: data
  })
}

// 获取分类品牌的详细信息
export function getCategoryBrandDetail(id) {
  return request({
    url: '/product/categoryBrand/' + id,
    method: 'get'
  })
}

// 删除分类品牌
export function deleteCategoryBrand(ids) {
  return request({
    url: '/product/categoryBrand/' + ids,
    method: 'delete'
  })
}

// 修改分类品牌
export function updateCategoryBrand(data) {
  return request({
    url: '/product/categoryBrand',
    method: 'put',
    data: data
  })
}
